package au.com.bluelink.scjp.chap3;

public class WrapperTest {

	public static void main(String[] args) {
		
		Boolean bool1 = new Boolean("true");
		Boolean bool2 = new Boolean(false);
		
		Byte b1 = new Byte("123");
		Byte b2 = new Byte((byte)123);
		
		Short sh1 = new Short("123");
		Short sh2 = new Short((short)123);
		
		Integer i1 = new Integer("123");
		Integer i2 = new Integer(123);
		
		Character c1 = new Character('q');
		Character c2 = new Character((char)123);
		
		Long l1 = new Long("123");
		Long l2 = new Long(123l);
		
		Float f1 = new Float("123.456");
		Float f2 = new Float(123.456f);
		float f3 = Float.parseFloat("12.34");
		
		Double d1 = new Double(123.456);
		Double d2 = new Double(123.456);
		Double d3 = Double.valueOf("3.14");
		System.out.println("Value of d3: " + d3);
		
	}

}
